<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script src="js/vue.js"></script>
		<title></title>
	</head>
	<body>
		<div id="app">
			<button v-on:click.once="clickBtn">只触发一次</button>
		</div>
	</body>
	<script>
		var vm = new Vue({
			el:'#app',
			data:{},
			methods:{
				clickBtn:function(){
					console.log('按钮被点击');
				}
			}
		})
	</script>
</html>
